package org.xinjiang.tarim.travel.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xinjiang.tarim.travel.mapper.RouteMddMapper;
import org.xinjiang.tarim.travel.model.RouteMdd;
import org.xinjiang.tarim.travel.service.RouteMddService;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
public class RouteMddServiceImpl implements RouteMddService {
    @Autowired
    RouteMddMapper routeMddMapper;

    @Override
    public List insertByList(List<RouteMdd> list) {
        routeMddMapper.insertByList(list);
        return list;
    }

    @Override
    public int updateByList(List<RouteMdd> list) {
        return routeMddMapper.updateByList(list);
    }

    @Override
    public RouteMdd seletcByRouteIdAndMddId(RouteMdd routeMdd) {
        return routeMddMapper.seletcByRouteIdAndMddId(routeMdd);
    }

    @Override
    public List seletcByRouteId(Long routeId) {
        return routeMddMapper.seletcByRouteId(routeId);
    }
}
